﻿import request from '@/utils/request';

// 发送文章评论
export function sendComment(data) {
  return request({
    url: '/comment',
    method: 'post',
    data,
  });
}

export function getArticleComment(query) {
  return request({
    url: '/comment/commentList',
    method: 'get',
    headers: {
      isToken: false,
    },
    params: query,
  });
}

export function getLinkComment(query) {
  return request({
    url: '/comment/linkCommentList',
    method: 'get',
    params: query,
  });
}
